//
//  RZSystemSoundPlayer.h
//  RZIM
//
//  Created by reyzhang on 2021/8/16.
//  系统消息播放管理器

#import <Foundation/Foundation.h>
#import "RZMessage.h"


NS_ASSUME_NONNULL_BEGIN

typedef void (^RZSystemSoundPlayerCompletion)(BOOL complete);

@interface RZSystemSoundPlayer : NSObject

+ (instancetype)defaultPlayer;

/**
 设置系统声音的路径
 */
- (void)setSystemSoundPath:(NSString *)path;


/**
 根据接收的消息 去播放声音
 */
- (void)playSoundByMessage:(RZMessage *)rcMessage completeBlock:(RZSystemSoundPlayerCompletion)completion;

/**
 * 设置忽略响铃的会话, 本质是会话的groupid
 */
- (void)setIgnoreSoundByConversationId:(NSString *)targetId;


/**
 * 清除忽略响铃的会话
 */
- (void)resetIgnoreConversation;

@end

NS_ASSUME_NONNULL_END
